Why does my nested loop not check the second element of vector (empty string)

join shbcf.ru